.class public Lcom/instagram/j/u;
.super Ljava/lang/Object;
.source "MediaStore.java"


# static fields
.field private static final a:Lcom/instagram/j/u;


# instance fields
.field private final b:Ljava/util/concurrent/ConcurrentHashMap;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/concurrent/ConcurrentHashMap",
            "<",
            "Ljava/lang/String;",
            "Lcom/instagram/j/l;",
            ">;"
        }
    .end annotation
.end field


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .prologue
    .line 14
    new-instance v0, Lcom/instagram/j/u;

    invoke-direct {v0}, Lcom/instagram/j/u;-><init>()V

    sput-object v0, Lcom/instagram/j/u;->a:Lcom/instagram/j/u;

    return-void
.end method

.method public constructor <init>()V
    .locals 1

    .prologue
    .line 12
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 16
    new-instance v0, Ljava/util/concurrent/ConcurrentHashMap;

    invoke-direct {v0}, Ljava/util/concurrent/ConcurrentHashMap;-><init>()V

    iput-object v0, p0, Lcom/instagram/j/u;->b:Ljava/util/concurrent/ConcurrentHashMap;

    return-void
.end method

.method public static a()Lcom/instagram/j/u;
    .locals 1

    .prologue
    .line 19
    sget-object v0, Lcom/instagram/j/u;->a:Lcom/instagram/j/u;

    return-object v0
.end method


# virtual methods
.method public a(Lcom/instagram/j/l;)Lcom/instagram/j/l;
    .locals 2
    .parameter

    .prologue
    .line 37
    iget-object v0, p0, Lcom/instagram/j/u;->b:Ljava/util/concurrent/ConcurrentHashMap;

    invoke-virtual {p1}, Lcom/instagram/j/l;->c()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1, p1}, Ljava/util/concurrent/ConcurrentHashMap;->putIfAbsent(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/instagram/j/l;

    return-object v0
.end method

.method public a(Ljava/lang/String;)Z
    .locals 1
    .parameter

    .prologue
    .line 23
    iget-object v0, p0, Lcom/instagram/j/u;->b:Ljava/util/concurrent/ConcurrentHashMap;

    invoke-virtual {v0, p1}, Ljava/util/concurrent/ConcurrentHashMap;->containsKey(Ljava/lang/Object;)Z

    move-result v0

    return v0
.end method

.method public b(Lcom/instagram/j/l;)Lcom/instagram/j/l;
    .locals 2
    .parameter

    .prologue
    .line 41
    iget-object v0, p0, Lcom/instagram/j/u;->b:Ljava/util/concurrent/ConcurrentHashMap;

    invoke-virtual {p1}, Lcom/instagram/j/l;->c()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1, p1}, Ljava/util/concurrent/ConcurrentHashMap;->putIfAbsent(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/instagram/j/l;

    .line 43
    if-eqz v0, :cond_0

    .line 45
    invoke-virtual {v0, p1}, Lcom/instagram/j/l;->a(Lcom/instagram/j/l;)V

    .line 46
    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Lcom/instagram/j/l;->a(Z)V

    .line 52
    :goto_0
    return-object v0

    :cond_0
    move-object v0, p1

    .line 49
    goto :goto_0
.end method

.method public b(Ljava/lang/String;)Lcom/instagram/j/l;
    .locals 1
    .parameter

    .prologue
    .line 27
    if-nez p1, :cond_0

    .line 28
    const/4 v0, 0x0

    .line 30
    :goto_0
    return-object v0

    :cond_0
    iget-object v0, p0, Lcom/instagram/j/u;->b:Ljava/util/concurrent/ConcurrentHashMap;

    invoke-virtual {v0, p1}, Ljava/util/concurrent/ConcurrentHashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/instagram/j/l;

    goto :goto_0
.end method

.method public c(Ljava/lang/String;)Lcom/instagram/j/l;
    .locals 1
    .parameter

    .prologue
    .line 59
    iget-object v0, p0, Lcom/instagram/j/u;->b:Ljava/util/concurrent/ConcurrentHashMap;

    invoke-virtual {v0, p1}, Ljava/util/concurrent/ConcurrentHashMap;->remove(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/instagram/j/l;

    return-object v0
.end method
